﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserLogin.ascx.cs" Inherits="Main_UserLogin" %>
<script language="javascript" type="text/javascript">
function init()
{
    var pass=document.getElementById ("<%=txtupass.ClientID %>");
    pass.value="";
        
}

function document.onkeydown()
{
    var e=event.srcElement;
    if(event.keyCode==13)
    {
    document.getElementById ("<%=btnlogin.ClientID %>").click();
    return false;
    }
}
</script>

<div id="login">        
     <div id="login_body">
          <asp:Panel ID="Panel1" CssClass="login_txt" runat="server" >
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                
                    <div class="login_row">
                         <div class="TextBox">
                            <div class="position_L">
                                <img src="css/userlogin/user2_16x16.gif"/></div>
                            <input id="txtuname" class="TxtBox" runat="server" value="用户名" style="width:125px;" onfocus="this.value=''"/>
                         </div>
                    </div> 
                              
                    <div class="login_row">
                        <div class="TextBox">
                            <div class="position_L"><img src="css/userlogin/lock.gif" /></div>
                            <asp:TextBox ID="txtupass" CssClass="TxtBox" runat="server" Width="125px" onfocus="init()" TextMode="Password"></asp:TextBox>
                         </div>
                    </div>
               
                    <div class="login_row">
                         <div class="TextBox2">
                              <div class="position_L"><img src="css/userlogin/yz.gif" /></div>
                              <input id="txtVail" class="TxtBox" runat="server" value="验证码" style="width:79px;" onfocus="this.value=''"/>
                         </div>       
                         <a class="position_L" href="index.aspx">
                            <img id="IMG1" alt="看不清请点击图片" src="ValidateCode.aspx" style="vertical-align: bottom" height="18px" />
                         </a>
                    </div>
               
                    <div class="login_row">
                        <asp:Button ID="btnlogin" runat="server" CssClass="login_but" Text="　 登陆" OnClick="btnlogin_Click" />
                        <asp:Button ID="btnshopreg" runat="server" CssClass="login_but2" 
                            OnClick="btnshopreg_Click" Text="  商家注册" />
                    </div>
               
                   <div class="login_row">
                         <asp:HyperLink ID="hlkreg" runat="server" ImageUrl="../css/userlogin/regbtn.gif" NavigateUrl="Register.aspx"></asp:HyperLink> 
                   </div> 
               
                   </ContentTemplate>
                 </asp:UpdatePanel>
              </asp:Panel> 
        	   <asp:Panel ID="Panel2" runat="server" Visible="False" CssClass="login_message">
        	        <div class="myinfo">我的信息</div>
                    用户昵称：<asp:Label ID="lblname" runat="server">lblname</asp:Label> <br />
                    上次登陆：<asp:Label ID="lbldate" runat="server">lbldate</asp:Label><br />
                    积分：<asp:Label ID="lbljifen" runat="server">lbljifen</asp:Label>
                    <br/>
                    <asp:Button ID="lbpost" runat="server" CssClass="login_but4" Text="发布信息" 
                        onclick="lbpost_Click"/>
                    <asp:Button ID="lbedit" runat="server" CssClass="login_but4" Text="管理信息" 
                        onclick="lbedit_Click"/>
                    <asp:Button ID="lbupdate" runat="server" CssClass="login_but4" Text="完善资料" 
                        OnClick="lbupdate_Click" />
                    <asp:Button ID="lbtexit" runat="server" CssClass="login_but4" Text="注销" OnClick="lbtexit_Click" />
              </asp:Panel>  
     </div>
     <div class="login_bottom">
         <img src="css/userlogin/login_bk2.jpg" />
     </div> 
</div>